
// bdcView.h : interface of the CbdcView class
//

#pragma once
#include "RecordWnd.h"
#include "RememberWnd.h"
#include "StatisticsWnd.h"
#include "LibWnd.h"
#include "bdcDoc.h"

#define MAIN_TAB_ID_RECORD   1
#define MAIN_TAB_ID_REMEMBER 2
#define MAIN_TAB_ID_LIB      3

#define MAIN_WND_RECORD      4
#define MAIN_WND_REMEMBER    5
#define MAIN_WND_LIB         6
#define MAIN_WND_STATISTIC   7

using namespace bdc::wnd;

class CbdcView : public CView
{
protected: // create from serialization only
	CbdcView();
	DECLARE_DYNCREATE(CbdcView)

// Attributes
public:
	CbdcDoc* GetDocument() const;

private:
	Gdiplus::Image* pImgBg;
	Gdiplus::Image* pImgRcdBtn;
	Gdiplus::Image* pImgRmbBtn;
	Gdiplus::Image* pImgLibBtn;

	CtlButton recordBtn;
	CtlButton rememberBtn;
	CtlButton libBtn;

	int currentWnd;
	CWnd* items[4];

public:
	WRecordWnd recordWnd;
	WRememberWnd rememberWnd;
	WStatisticsWnd rememberNWnd;
	WLibWnd libWnd;	

// Operations
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:

// Implementation
public:
	virtual ~CbdcView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
protected:
	afx_msg void OnRecordCliecked();
	afx_msg void OnRememberCliecked();
	afx_msg void OnLibCliecked();

public:
	virtual void OnInitialUpdate();
};

#ifndef _DEBUG  // debug version in bdcView.cpp
inline CbdcDoc* CbdcView::GetDocument() const
   { return reinterpret_cast<CbdcDoc*>(m_pDocument); }
#endif

